﻿using Microsoft.AspNetCore.Mvc.RazorPages;
using Model.Models;

namespace LDM.Sys.ServiceAPI.Model.ViewModel.Request.AuthorityReq
{

    /// <summary>
    /// 获取用户角色请求
    /// </summary>
    public class GetSysRoleReq : PageInfo
    {
        /// <summary>
        /// 角色编码
        /// </summary>
        public string? RoleCode { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string? RoleName { get; set; }
    }

    /// <summary>
    /// 添加用户角色请求
    /// </summary>
    public class AddSysRoleReq
    {
        /// <summary>
        /// 角色编码
        /// </summary>
        public string RoleCode { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
    }

    /// <summary>
    /// 修改用户角色请求
    /// </summary>    
    public class UpdateSysRoleReq
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 角色编码
        /// </summary>
        public string RoleCode { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
    }

    /// <summary>
    /// 删除用户角色请求
    /// </summary>    
    public class DelSysRoleReq
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
    }
}
